#include "fun.h"
#include <iostream>

int main()
{
	InitSqure(squre);
	CreateSqure(squre);
	PrintSqure(squre, "Main 1:");
	for(int i = 0; i < 10000; ++i)
	{
		CCoordinate first;
		CCoordinate second;
		while (ClickSqure(squre, first, second) == 0)
		{
			InitSqure(squre);
			CreateSqure(squre);
		}
		if (ProcessSqure(squre) == 0)
		{
			std::cout << "error\n";
			break;
		}
		while (ProcessSqure(squre) == 1)
		{}
	}

	return 1;
}